/**
 * 作者：陈文斌 on 2019/1/5.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';

part 'contact_info_model.g.dart';

@JsonSerializable()
class ContactInfoModel extends Object with _$ContactInfoModelSerializerMixin {
  String QQaccount;
  String contactsCompanyId;
  String customerId;
  String employeeId;
  String id;
  String mail;
  String name;
  String phone;
  String position;
  String telephone;

  ContactInfoModel(
    this.QQaccount,
    this.contactsCompanyId,
    this.customerId,
    this.employeeId,
    this.id,
    this.mail,
    this.name,
    this.phone,
    this.position,
    this.telephone,
  );

  @override
  String toString() {
    return {
      'QQaccount': this.QQaccount,
      'contactsCompanyId': this.contactsCompanyId,
      'customerId': this.customerId,
      'employeeId': this.employeeId,
      'id': this.id,
      'mail': this.mail,
      'name': this.name,
      'phone': this.phone,
      'position': this.position,
      'telephone': this.telephone,
    }.toString();
  }

  @override
  factory ContactInfoModel.fromJson(Map<String, dynamic> json) =>
      _$ContactInfoModelFromJson(json);
}
